package opl.receivers;

import opl.common.ConfigurationSettings;
import opl.services.NotificationService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootCompletedReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		int value = Integer.parseInt(ConfigurationSettings.getValue(
				ConfigurationSettings.SYNC_INTERVAL, context));
		Intent intService=new Intent(context, NotificationService.class);
		intService.putExtra(ConfigurationSettings.SYNC_INTERVAL, value);
		context.startService(intService);
	}
}
